import Layout from '@/layout'
export default {
  path: '/employees',
  name: 'employee',
  component: Layout,
  // redirect: '/department',
  children: [{
    // 这里的path为空,是因为父路由的path是/department,子路由的path为空,就会自动拼接父路由的path
    // 所以这里的path为空,就会变成/department
    // 这里简单理解为默认路由
    path: '',
    name: 'employees',
    component: () => import('@/views/employees/index'),
    meta: { title: '员工', icon: 'people' }
  },
  {
    path: '/employees/detail/:id?', // 员工详情的地址
    component: () => import('@/views/employees/detail.vue'),
    hidden: true, // 表示隐藏在左侧菜单
    meta: {
      title: '员工详情' // 显示在导航的文本
    }
  }]
}
